package com.gzs.zhdj.service;

import com.gzs.zhdj.domain.dto.ActPageDto;
import com.gzs.zhdj.domain.dto.ActivitiesDto;
import com.gzs.zhdj.domain.dto.PageBean;
import com.gzs.zhdj.domain.dto.ParticipantDto;
import com.gzs.zhdj.domain.entity.Activities;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDateTime;
import java.util.List;

public interface ActivityService {
    void createAct(ActivitiesDto act);

    void joinAct(int id);


    void uploadFeel(int id,MultipartFile file);

    List<ParticipantDto> getFeel(int id);

    List<ParticipantDto> getSelfFeeel(int id);

    void deleteAct(int id);

    ActivitiesDto getActById(int id);

    void updateAct(ActivitiesDto act);


    PageBean getSelfAct(String name, LocalDateTime start, LocalDateTime end, int page, int pageSize);

    PageBean getAct(String name, LocalDateTime start, LocalDateTime end, int page, int pageSize);

    void cancelAct(int id);
}
